<?php

/** @Table("edition") */
class edition extends Model {

    /** @Column("{'name':'id', 'type':'int','length':'11', 'primaryKey':'true'}") */
    public $id;

    /** @Column("{'name':'users', 'type':'int','length':'11', 'nullable':'false'}") */
    public $users;

    /** @Column("{'name':'category1', 'type':'int','length':'11'}") */
    public $category1;

    /** @Column("{'name':'publish', 'type':'datetine'}") */
    public $publish;

    /** @Column("{'name':'updates', 'type':'datetine'}") */
    public $updates;

    /** @Column("{'name':'title', 'type':'varchar', 'length':'255', 'nullable':'false'}") */
    public $title;

    /** @Column("{'name':'text', 'type':'varchar', 'length':'5000', 'unique':'true', 'nullable':'false'}") */
    public $text;

    /** @Column("{'name':'Album', 'type':'int','length':'11'}") */
    public $Album;

    /** @Column("{'name':'author', 'type':'varchar', 'length':'255'}") */
    public $author;

    /** @Column("{'name':'enabled', 'type':'boolean', 'nullable':'false'}") */
    public $enabled;

    function __construct() {
        $this->id = -1;
        $this->users = new users();
        $this->category1 = new category1();
        $this->publish = date('y-m-d H:i:s');
        $this->updates = date('y-m-d H:i:s');
        $this->title = "";
        $this->text = "";
        $this->Album = 0;
        $this->author = "";
        $this->enabled = false;
        parent::__construct();
    }

    function construct($id = 0, users $users = null, category1 $category1 = null, $publish = null, $updates = null, $title = "", $text = "", $Album = 0, $author = "", $enabled = false) {
        $this->id = $id;
        $this->users = $users;
        $this->category1 = $category1;
        $this->publish = $publish;
        $this->updates = $updates;
        $this->title = $title;
        $this->text = $text;
        $this->album = album;
        $this->author = $author;
        $this->enabled = $enabled;
    }

    public function getId() {
        return $this->id;
    }

    public function getUsers() {
        return $this->users;
    }

    public function getCategory1() {
        return $this->category1;
    }

    public function getPublish() {
        return $this->publish;
    }

    public function getUpdates() {
        return $this->updates;
    }

    public function getTitle() {
        return $this->title;
    }

    public function getText() {
        return $this->text;
    }

    public function getAlbum() {
        return $this->Album;
    }

    public function getAuthor() {
        return $this->author;
    }

    public function getEnabled() {
        return $this->enabled;
    }

    public function setId($id = 0) {
        $this->id = $id;
    }

    public function setUsers(users $users = null) {
        $this->users = $users;
    }

    public function setCategory1(category1 $category1 = null) {
        $this->category1 = $category1;
    }

    public function setPublish($publish = null) {
        $this->publish = $publish;
    }

    public function setUpdates($updates = null) {
        $this->updates = $updates;
    }

    public function setTitle($title = "") {
        $this->title = $title;
    }

    public function setText($text = "") {
        $this->text = $text;
    }

    public function setAlbum($Album = 0) {
        $this->Album = $Album;
    }

    public function setAuthor($author = "") {
        $this->author = $author;
    }

    public function setEnabled($enabled = false) {
        $this->enabled = $enabled;
    }

}
